package com.enjoyor.soa.traffic.rest.efoms.dubbo.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboAssentFileInfoService;
import com.enjoyor.soa.traffic.rest.efoms.dubbo.IAssentFileInfoConsumeService;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class AssentFileInfoConsumeService implements IAssentFileInfoConsumeService{

	@Reference(version = "1.0.0")
	//@Reference(version = "1.0.0", url="dubbo://192.168.56.96:21141")
	private IDubboAssentFileInfoService dubboAssentFileInfoService;
	@Override
	public ResultPojo insertAssentFileInfo(String list, String personName) {
		// TODO Auto-generated method stub
		return dubboAssentFileInfoService.insertAssentFileInfo(list, personName);
	}

	@Override
	public ResultPojo deleteAssentFileInfo(String fileId, String personName) {
		// TODO Auto-generated method stub
		return dubboAssentFileInfoService.deleteAssentFileInfo(fileId, personName);
	}

	@Override
	public ResultPojo getAssentFileInfoList(String fileId, String devId, String devTypeCode, String devCategoryCode) {
		// TODO Auto-generated method stub
		return dubboAssentFileInfoService.getAssentFileInfoList(fileId, devId, devTypeCode, devCategoryCode);
	}

}
